package com.example.jegotrip.base;

import android.os.Bundle;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

public abstract class BaseActivity extends AppCompatActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
        setContentView(getLayoutResOId());

        initViews();

        setListener();

        initData();
    }

    protected abstract void initData();

    protected abstract void setListener();

    protected abstract void initViews();

    protected abstract int getLayoutResOId();
};

